#include <stdio.h>
int main()
{
    int year, leap;
    printf("Please enter the year:");
    scanf("%d", &year);
    if (year % 4 == 0)
    {
        if (year % 100 != 0)
        {
            if (year % 400 == 0)
                leap = 1;
            else
                leap = 0;
        }
        else
            leap = 1;
    }
    else
        leap = 0;
    if (leap)
    {
        printf("%d is leap year\n", year);
    }
    else
        printf("%d is common year\n", year);
    int year1;
    printf("please enter the year:");
    scanf("%d", &year1);
    if ((year1 % 4 == 0 && year1 % 100 != 0) || (year1 % 400 == 0))
    {
        printf("%d is leap year\n", year1);
    }
    else
        printf("%d is common year\n", year1);
    return 0;
}
